<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>修改部长</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <jsp:include page="_Chair.jsp" />
</div>

<div class="right_col" role="main" style="height:656px">
    <div class="row">
        <div class="col-md-8">
            <h4>修改部长</h4>
            <form role="form" class="form-horizontal" action="${pageContext.request.contextPath}/chair/modifyMinisterToDb" method="post">
                <input type="hidden" name="memberNo" id="memberNo" value="${memberNo}"/>

                <div class="form-group">
                    <label class="col-sm-2 control-label">姓名:</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="studentName" name="studentName" value="${studentName }" required maxlength="11" >
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">性别:</label>
                    <div class="col-sm-10">
                        <select class="form-control" id="sex" name="sex">
                            <option value="男">男</option>
                            <option value="女">女</option>
                        </select>
                    </div>
                </div>


                <div class="form-group">
                    <label class="col-sm-2 control-label">部门:</label>
                    <div class="col-sm-10">
                        <select class="form-control" id="collegeId" name="collegeId">
                            <option value="1">信息工程学院</option>
                            <option value="2">人文学院</option>
                            <option value="3">外国语学院</option>
                            <option value="4">体育学院</option>
                            <option value="5">师范学院</option>
                            <option value="6">生态工程学院</option>
                            <option value="7">化学工程学院</option>
                            <option value="8">艺术学院</option>

                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">当前部门：</label>
                    <div class="col-sm-10">
                        <input class="form-control" name="department" id="departmentOld" value="${departmentName}"  readonly>
                    </div>
                </div>

                <div class="form-group">
                    <label  class="col-sm-2 control-label">院系:</label>
                    <div class="col-sm-10">
                        <select class="form-control" id="depart" name="depart">
                            <option value="1">文艺部</option>
                            <option value="2">体育部</option>
                            <option value="3">组织部</option>
                            <option value="4">宣传部</option>
                            <option value="5">权益部</option>
                            <option value="6">办公室</option>
                            <option value="7">学习部</option>
                            <option value="8">青年之声</option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">联系电话:</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="phone" name="phone" value="${phone}" onblur="verify()" oninput="value=value.replace(/[^\d]/g,'')"  required maxlength="11">
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <div class="col-sm-3"></div>
                        <button type="submit" class="btn btn-primary col-sm-2">提交</button>
                        <div class="col-sm-2"></div>
                        <button type="reset" class="btn btn-danger col-sm-2">重置</button>
                        <div class="col-sm-3"></div>
                    </div>
                </div>

            </form>
        </div>
    </div>
</div>
</body>
</html>